<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    xmlns:f="http://java.sun.com/jsf/core"
	    xmlns:h="http://java.sun.com/jsf/html"
	    xmlns:ui="http://java.sun.com/jsf/facelets"
	    xmlns:p="http://primefaces.org/ui">
   	<h:form>  
	    <p:growl id="messages"/> 
	    <p:toolbar>  
	        <p:toolbarGroup align="left">  
	            <p:button type="button" value="Usu&aacute;rio" icon="ui-icon-person" 
	            href="/pages/protected/admin/Usuario.jsf"
	            rendered="#{usuarioController.usuarioLogin.perfil.descricao == 'admin'}" />  
	  
	            <p:button type="button" value="Produto" icon="ui-icon-tag" 
	            href="/pages/protected/admin/Produto.jsf"
	            rendered="#{usuarioController.usuarioLogin.perfil.descricao == 'admin'}"/>
	            
	            <p:button type="button" value="Edital" icon="ui-icon-note" 
	            href="/pages/protected/admin/Edital.jsf"
	            rendered="#{usuarioController.usuarioLogin.perfil.descricao == 'admin'}"/>
	            
	            <p:button type="button" 
	            value="Leil&atilde;o" icon="ui-icon-flag" href="/pages/protected/defaultUser/Leilao.jsf"
	            rendered="#{usuarioController.usuarioLogin.perfil.descricao == 'usuario'}"/>  
	            
	            <p:button type="button" 
	            value="Leil&otilde;es Encerrados" icon="ui-icon-cancel" 
	            href="/pages/protected/defaultUser/LeiloesEncerrados.jsf"
	            rendered="#{usuarioController.usuarioLogin.perfil.descricao == 'usuario'}"/>  
	   
	        </p:toolbarGroup>  
	  
	        <p:toolbarGroup align="right">  
	                <p:commandButton id="loginButton" value="Sair"   
		                    action="#{usuarioController.logout}" 
		                    immediate="true"  
		                    ajax="false"/>  
	        </p:toolbarGroup>  
  
    </p:toolbar>  
	</h:form>  
</ui:composition>